from django.conf.urls import url

from . import views


urlpatterns = [
    # 跳转首页
    # url(r'^goods/$', views.GoodsView.as_view()),
    # 列表页
    url(r'^list/(?P<category_id>\d+)/(?P<page_num>\d+)/$', views.ListView.as_view(),name='list'),
    # 热销排行
    url(r'^hot/(?P<category_id>\d+)/$', views.HotView.as_view()),
    # 商品详情页
    url(r'^detail/(?P<sku_id>\d+)/$', views.DetailView.as_view(),name='detail'),
    # 详情页分类访问数量
    url(r'^detail/visit/(?P<category_id>\d+)/$', views.DetailVisitView.as_view()),
]
